package cn.tedu.shoot;

//  子弹
public class Bullet extends FlyingObject{
	private int speed =3;
    public Bullet(int x,int y){
    	image =ShootGame.bullet;
	    width =image.getWidth();
	    height =image.getHeight();
	    this.x =x;
	    this.y =y;
    }
/**重写step走一步 */	
	public void step(){
		y-= speed;
	}
/** 重写   是否越界*/
	public boolean outOfBounds(){
		return this.y<=-this.height;
	}
}
